package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author dc
 * @Classname Cart
 * @Date 2020/2/28 14:35
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("tb_cart")
public class Cart extends BasePojo{
    private static final long serialVersionUID = 5607272160099113706L;
    @TableId(type = IdType.AUTO)
    private Long id;
    /**用户编号*/
    private Long userId;
    /**商品编号*/
    private Long itemId;
    /**商品标题*/
    private String itemTitle;
    /**商品图片*/
    private String itemImage;
    /**商品价格*/
    private Long itemPrice;
    /**商品数量*/
    private Integer num;
}
